package com.lucy.dingding.core;

import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Post;
import com.lucy.dingding.constant.DingApiConfig;

/**
 * @author kindear
 * 钉钉开放接口
 */
public interface DingOpenApi {
    /**
     * 获取应用访问令牌
     * @param appKey 应用key
     * @param appSecret 应用密钥
     * @return token
     */
    @Post(url = "https://api.dingtalk.com/"+ DingApiConfig.version+"/oauth2/accessToken",
            contentType = "application/json")
    String exToken(@Body("appKey") String appKey,@Body("appSecret") String appSecret);

}
